/*
 * @Author: your name
 * @Date: 2021-06-18 08:08:12
 * @LastEditTime: 2021-06-18 08:11:07
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \618\liufan\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'Home',
        component: () =>
            import ('../views/home/index.vue')
    },
    {
        path: '/my',
        name: 'My',
        component: () =>
            import ('../views/my/index.vue')
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router